package 作业.Var1029.Test5;

public class aaa {
    Swimming swimming;

    public aaa() {

    }
    public Swimming getSwimming() {
        return swimming;
    }

    public void setSwimming(Swimming swimming) {
        this.swimming = swimming;
    }

    public aaa(Swimming swimming) {
        this.swimming = swimming;
    }
    public void show(){
        System.out.println(swimming.getyu()+"使用声呐扫描水底");
    }
    public void yu(){
        System.out.println("发现"+swimming.getyu()+"在水中游动");
    }
}
